package com.henry.librarymng;

import java.util.Date;

public class BorrowingInfo {
    String readerID;
    Date borrowingDate;
    public BorrowingInfo(String id, Date date) {
        this.readerID = id;
        this.borrowingDate = date;
    }
    public BorrowingInfo(BorrowingInfo other) {
        this.readerID = other.readerID;
        this.borrowingDate = other.borrowingDate;
    }
    @Override
    public String toString() {
        return readerID + " borrowed this book at " + borrowingDate;
    }
}
